#include <initializer_list>
#include <iostream>
using namespace std;

int sum(initializer_list<int> items) {
    int sum = 0;
    for(const auto &item : items) {
        sum += item;
    }
    return sum;
}

int main() {
    cout << sum({1, 2, 3}) << endl;
    return 0;
}